﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucHeader.ascx.cs" Inherits="PhotoList.Web.Common.ucHeader" %>

<script language="javascript" type="text/javascript">
    function logout() {
        if (!confirm("您确认要退出吗?")) {
            return false;
        }

        return true;
    }
</script>

<table border="0" cellpadding="0" cellspacing="0" width="100%" id="Top">
    <tr>
        <td align="left" style="margin:0 10px;"></td>
        <td align="right" style="margin:0 10px;">
            <a href="Main.aspx?target=User/ucList" target="frmMain">查看图片</a>
            <a href="~/Main.aspx?target=Admin/ucThumbs" target="frmMain" id="createThumbnail" runat="server" visible="false">生成缩略图</a>
            <a href="~/Main.aspx?target=Admin/ucUser" target="frmMain" id="userManage" runat="server" visible="false">用户管理</a> 
            <a href="Main.aspx?target=User/ucChangePwd" target="frmMain">修改密码</a> 
            <asp:LinkButton ID="lbExit" runat="server" OnClientClick="return logout();" OnClick="lbExit_Click" Text="退出系统"></asp:LinkButton>
        </td>
    </tr>
</table> 